package com.czxy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

/**
 * 规格表   （一 个三级分类对应 多 个规格）
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/21 14:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "tb_specification")
public class Specification {

    @Id
    private Integer id;

    /**
     * 规格名称
     */
    @Column(name = "spec_name")
    private String spec_name;

    /**
     * 分类id
     */
    @Column(name = "category_id")
    private Integer category_id;

    /**
     * 所有的子项
     */
    private List<SpecificationOption> options;
}
